package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.time.LocalDate;

@Mapper
public interface OrderSettingMapper {
@Select("SELECT *from health_chuanzhi.t_ordersetting where orderDate=#{orderDate}")
    OrderSetting selectByDate(LocalDate orderDate);
    @Update("update health_chuanzhi.t_ordersetting set reservations = #{reservations} where orderDate = #{orderDate}")
    void update(OrderSetting orderSetting);
}
